package viewmodel;


import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleOwner;

import com.xgggh.redpack.domain.auth.Profile;

import javax.inject.Inject;
import io.reactivex.Flowable;
import model.Rsp;
import repository.ProfileRepository;

public class ProfileViewModel extends BaseViewModel<ProfileRepository> {
    ProfileRepository repository;
    @Inject
    public ProfileViewModel(ProfileRepository repository) {
        this.repository = repository;
    }

    public Flowable<Rsp<Profile>> getProfile() {
        Flowable<Rsp<Profile>> listRsp=repository.getProfile();
        return listRsp;
    }

}
